gapi_fixup = executable('gapi-fixup', 'gapi-fixup.cs',
    install_dir : gapi_installdir,
    install: install)

gapi_codegen = executable('gapi_codegen',
    'AliasGen.cs',
    'ArrayParameter.cs',
    'BoxedGen.cs',
    'ByRefGen.cs',
    'CallbackGen.cs',
    'ChildProperty.cs',
    'ClassBase.cs',
    'ClassField.cs',
    'ClassGen.cs',
    'CodeGenerator.cs',
    'ConstFilenameGen.cs',
    'ConstStringGen.cs',
    'Constant.cs',
    'Ctor.cs',
    'DefaultSignalHandler.cs',
    'EnumGen.cs',
    'FieldBase.cs',
    'GenBase.cs',
    'GenerationInfo.cs',
    'GObjectVM.cs',
    'HandleBase.cs',
    'IAccessor.cs',
    'IGeneratable.cs',
    'IManualMarshaler.cs',
    'InterfaceGen.cs',
    'InterfaceVM.cs',
    'IOwnable.cs',
    'LogWriter.cs',
    'LPGen.cs',
    'LPUGen.cs',
    'ManagedCallString.cs',
    'ManualGen.cs',
    'MarshalGen.cs',
    'MethodABIField.cs',
    'MethodBase.cs',
    'MethodBody.cs',
    'Method.cs',
    'NativeStructGen.cs',
    'ObjectField.cs',
    'StructABIField.cs',
    'ObjectBase.cs',
    'ObjectGen.cs',
    'OpaqueGen.cs',
    'Options.cs',
    'OwnableGen.cs',
    'Parameter.cs',
    'Parameters.cs',
    'Parser.cs',
    'Property.cs',
    'PropertyBase.cs',
    'ReturnValue.cs',
    'Signal.cs',
    'Signature.cs',
    'SimpleBase.cs',
    'SimpleGen.cs',
    'Statistics.cs',
    'StructBase.cs',
    'StructField.cs',
    'StructGen.cs',
    'SymbolTable.cs',
    'UnionABIField.cs',
    'UnionGen.cs',
    'VirtualMethod.cs',
    'VMSignature.cs',
    'XmlElementExtensions.cs',
    install_dir : gapi_installdir,
    install: install)

if install
    configure_file(input: 'gapi3-fixup.in',
            output: 'gapi3-fixup',
            configuration : gapi_parser_data,
            install_dir: get_option('bindir'))
    configure_file(input: 'gapi3-codegen.in',
            output: 'gapi3-codegen',
            configuration : gapi_parser_data,
            install_dir: get_option('bindir'))
else
    configure_file(input: 'gapi3-fixup.in',
            output: 'gapi3-fixup',
            configuration : gapi_parser_data)
    configure_file(input: 'gapi3-codegen.in',
            output: 'gapi3-codegen',
            configuration : gapi_parser_data)
endif
